home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / CachedViewEditor.h < prev    next >
Text File  |  1996-12-01  |  2KB  |  78 lines

  1. /*
  2.  *  File:       CachedViewEditor.h
  3.  *  Summary:       A view that knows how to edit a TCachedView.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->    12/01/96    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZCachedView.h>
  17.  
  18. #include "BasePaneEditor.h"
  19.  
  20.  
  21. // ===================================================================================
  22. //    class CEditCachedViewCommand
  23. // ===================================================================================
  24. class CEditCachedViewCommand : public CBaseEditPaneCommand<TCachedView, SCachedViewInfo> {
  25.  
  26.     typedef CBaseEditPaneCommand<TCachedView, SCachedViewInfo> Inherited;
  27.  
  28. //-----------------------------------
  29. //    Initialization/Destruction
  30. //
  31. public:
  32.     virtual             ~CEditCachedViewCommand();
  33.     
  34.                         CEditCachedViewCommand(TCachedView* pane, const SCachedViewInfo& oldInfo, const SCachedViewInfo& newInfo);
  35.     
  36. //-----------------------------------
  37. //    Inherited API
  38. //
  39. public:
  40.     virtual    void         UpdatePane(const SCachedViewInfo& newInfo);
  41. };
  42.  
  43.  
  44. // ===================================================================================
  45. //    CCachedViewEditor
  46. // ===================================================================================
  47. class CCachedViewEditor : public CBasePaneEditor<TCachedView, SCachedViewInfo, CEditCachedViewCommand> {
  48.  
  49.     typedef CBasePaneEditor<TCachedView, SCachedViewInfo, CEditCachedViewCommand> Inherited;
  50.     
  51. //-----------------------------------
  52. //    Initialization/Destruction
  53. //
  54. public:
  55.     virtual                ~CCachedViewEditor();
  56.                         
  57.                         CCachedViewEditor(TView* superView);
  58.  
  59. //-----------------------------------
  60. //    Inherited API
  61. //
  62. public:
  63.     virtual bool         Validate();
  64.  
  65. protected:
  66.     virtual SCachedViewInfo GetEditorInfo() const;
  67.             
  68.     virtual void         SetEditorInfo(const SCachedViewInfo& info);
  69.                         
  70. //-----------------------------------
  71. //    TReanimator Support
  72. //
  73. public:
  74.     static     MReanimatable* Create(MReanimatable* parent);
  75. };
  76.  
  77.  
  78.